<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<title>内部管理系统</title>
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<link rel="stylesheet" type="text/css"
	href="../../lib/bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css"
	href="../../stylesheets/theme.css">
<link rel="stylesheet"
	href="../../lib/font-awesome/css/font-awesome.css">

<script src="../../lib/jquery.min.js" type="text/javascript"></script>
<script src="../../lib/bootstrap/js/bootstrap.js"></script>
<script src="../../lib/jquery.validate.min.js"></script>
<script src="../../lib/jquery.cookie.js"></script>
<script src="../../lib/jquery.messager.js"></script>
<script src="../../js/init.js"></script>



<style type="text/css">
#container {
	height: 300px;
	width: 400px;
}

.fl {
	float: left
}

select {
	width: 130px;
}
.title{
	font-size:18px;
	font-weight:bold;
}
</style>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="lib/html5.js"></script>
    <![endif]-->
</head>

<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<body class="">
	<!--<![endif]-->

	<div class="navbar"></div>
	<div class="common"></div>

	<div class="sidebar-nav"></div>

	<div class="content">
		<div class="well">
			<ul class="nav nav-tabs">
				<li class="active"><a href="#userlist" data-toggle="tab">企业</a></li>
			</ul>
			<div id="myTabContent" class="tab-content">
				<div class="tab-pane active in" id="storelist">

					<div class="container-fluid">
						<div class="span8">
							<form class="form-horizontal" id="user_form">
								<div class="control-group title">详情 </div>
								<input class="hidden" id="companyId">

								<div class="control-group">
									<label class="control-label">企业名称：</label> <label id="companyName">
									</label>
								</div>
								<div class="control-group">
									<label class="control-label">领域：</label> <label id="dicFieldName">
									</label>
								</div>
								<div class="control-group">
									<label class="control-label">网址：</label> <label id="website">
									</label>
								</div>
								<div class="control-group">
									<label class="control-label">地址：</label> <label id="address">
									</label>
								</div>
								<div class="control-group">
									<label class="control-label">邮箱：</label> <label id="email">
									</label>
								</div>
								<div class="control-group">
									<label class="control-label">电话：</label> <label id="tel">
									</label>
								</div>
								<div class="control-group">
									<label class="control-label">简介：</label> <label id="intro">
									</label>
								</div>
								<div class="control-group">
									<label class="control-label">生成时间：</label> <label id="createDate">
									</label>
								</div>

								<div class="form-actions">
									<button id="btn-back" type="button" class="btn ">返回</button>
								</div>

							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>


	<script type="text/javascript">
	
		//初始化导航栏
		$(function() {
			initAdminNavBar();
			initCommon();
			initSideBar('user-management', 'company-list');

		});
		
		//初始化用户详细信息
		$(function() {
			var uid = $('#uid').val();
			var token = $('#token').val();
			var companyId = getparastr('companyId');
			if (companyId != null && companyId != "") {//更新的情况下,给页面赋初始值
				$.ajax({
					contentType : "application/json",
					url : api_base_url
							+ "selectCompanyDetail.json?companyId="
							+ companyId + "&uid="
							+ uid + "&token="
							+ token,
					dataType : "json",
					success : function(data) {
						if (data.code == "200") {
							var district = data.responseData.district;
							var location = data.responseData.location;
							var website = data.responseData.website;
							var companyName = data.responseData.companyName;
							var createDate = data.responseData.createDate;
							var dicFieldName = data.responseData.dicFieldName;
							var email = data.responseData.email;
							var intro = data.responseData.intro;
							var tel = data.responseData.tel;
							$("#address").html(district + "" + location);
							$("#website").html(website);
							$("#companyName").html(companyName);
							$("#createDate").html(createDate);
							$("#dicFieldName").html(dicFieldName);
							$("#email").html(email);
							$("#intro").html(intro);
							$("#tel").html(tel);
						}
						$.messager.anim('fade', 1000);
					    $.messager.show('操作提示',data.msg, 5000);
					}
				});
			}  

		});


		//返回
		$('#btn-back').on('click', function() {
			history.back()
		});


	</script>

</body>
</html>


